import { _decorator, AudioClip, Component, director, Node } from 'cc';
import { AudioMgr } from './AudioMgr';
const { ccclass, property } = _decorator;

@ccclass('StartUI')
export class StartUI extends Component {
    @property(AudioClip)
    buttonAudio: AudioClip = null;
    
    start() {

    }

    update(deltaTime: number) {
        
    }

    public onStartButtonClick() {
        AudioMgr.inst.playOneShot(this.buttonAudio)
        director.loadScene('02-GameScene')
    }
}


